<?php

class Translator {

    public static $pairs = array(
        'produits' => 'home',
        'voir' => 'index'
    );

    public static function to_eng($string)
    {
        if (array_key_exists($string, self::$pairs))
            return self::$pairs[$string];
        else
            return $string;
    }
}
